<?php

include_once $_SERVER['DOCUMENT_ROOT'].'/functions/password/bdd.php';

function bdd_init() {

    $pdo_options[PDO::ATTR_ERRMODE] = PDO::ERRMODE_EXCEPTION;
    $bdd = new PDO('mysql:host=localhost;dbname=origavion', 'origavion', get_bdd_password(), $pdo_options);

    return $bdd;
}

?>
